

#ifndef __CCmdDiceBonus_h__
#define __CCmdDiceBonus_h__

#include "CTAsyncCmd.h"
#include "commclass.h"

class CGidToRank
{
public:
    CGidToRank ()
    {
        _uiGID = 0;
        _ucRank = 0;
    }

    unsigned int _uiGID;
    unsigned char _ucRank;
};

class CMainCtrl;
class CCmdDiceBonus : public CTLib::CTAsyncCmd
{
public:
    CCmdDiceBonus()
    {
        _auiClanId.Clear();
        _auiGid.Clear();        
    }

    virtual int Do(void* pData);
    virtual int LogicDo(int iRet);
    virtual int CallBack(int iRet);    
    int ProcOneUser (CPlayerBaseInfo& stPlayerBaseInfo, CPlayerDetailInfo& stPlayerDetailInfo, unsigned char ucRank);

    CTArray<unsigned int, MAX_CLAN_COUNT_PER_ZONE> _auiClanId;
    CMainCtrl* pstMainCtrl;

private:
    CTArray<CGidToRank, MAX_DICE_RANK_SIZE> _auiGid;    
};


#endif // __CCmdDiceBonus_h__

